var attack = argument0;
var attacked = argument1;
var attacker = attack.attacker; //assume attack.attacker is of type NPCombatant
//assume collided is an array of combatants
var attackBonus = attacker.attackBonus;
var attackedDefense = attacked.attackDefense;
var attackedArmor = 0;
if ( attacked.alignment == PLAYER )
    for ( var i = 0; i < 5; i++)
    {
        attackedArmor += attacked.inventory.equipment [ i ].statEffects [ STAT_EFFECTS.PHYS_ARMOR ];
        //this should be using the statEffects variable that each piece
        //of equipment has to sum up all armor bonuses.
    }
    //This should sum up all of the armorBonuses from armor
    //improving items for the player.
var appliedDamage = ( damageDealt - attackedArmor ) * attackDefense;
attacked.HPCurrent = attacked.HPCurrent - appliedDamage;
//apply damage to each attacked